package cn.com.simple.learning.designpattern.behavior.responsibility;

/**
 * @author Jianxing.Jia
 * @date 2022/2/9
 * @description 描述信息
 */
public abstract class RuleHandler {

    protected RuleHandler nextRuleHandler;

    protected abstract boolean apply(Rule rule);

    public void setNextRuleHandler(RuleHandler nextRuleHandler) {
        this.nextRuleHandler = nextRuleHandler;
    }

    public RuleHandler getNextRuleHandler() {
        return nextRuleHandler;
    }
}
